/* 主页index.html的样式表 */

/* 顶部导航条的容器 */
.topbar-wrapper{
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #333;
}
/* 设置左侧导航栏*/
.service,.topbar li{
    float: left;
}
/* 设置右侧导航栏 */
.shop-cart,.user-info{
    float:right;
    position: relative;
    left:-123px;
}
.user-info{
    margin-right: 25px;
    font-size: 10px;
}
/* 设置app下的小三角 */
.app{
    position: relative;
}
li:hover>.app::after{
    content:'';
    /* display: none; */
    width: 0px;
    height: 0px;
    border: 6px solid transparent;
    border-top: none;
    border-bottom-color:#fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin:auto;
}
/* .app:hover .qrcode,.app:hover::after{
    display: block;
} */
/* 设置app下拉 */
li:hover> .app .qrcode{
    display: block;
}
.app .qrcode{
    position: absolute;
    display: none;
    width: 124px;
    height: 148px;
    left: -40px;
    line-height: 1;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,.3);
    transition:all 0.3s;
    z-index: 9999;
}
.app .qrcode img{
 width: 90px;
 margin: 17px;
 
}
.app .qrcode span{
    font-size:14px;
    color: #000;
    
}
/* 设置超链接的样式 */
.topbar a{
    text-decoration: none;
    color: #b0b0b0;
    display: block;
}
.topbar a:hover{
    color:white;
}
/* 设置中间的分割线 */
.topbar .line{
    color:#424242;
    font-size: 12px;
    margin:0px 8px ;
}
/* 设置购物车的样式 */
.shop-cart{
    margin-left: 26px;
}
.shop-cart a{
    position: absolute;
    width: 120px;
    background-color: #424242;
    text-align: center;
}
.shop-cart:hover a{
   color: #FF6700;
   background-color: #fff;
}
.shop-cart i{
    margin-right: 2px;
}
/* 设置购物车弹出框 */
.shop-cart .tanchu{
    position: relative; 
    left:-196px;
    width: 316px;
 height: 100px;
 box-shadow: 0 4px 4px rgba(0,0,0,.1);
 background-color: #fff;
 display: none;
 z-index: 999;

}
.shop-cart .tanchu span{
  display: block;
  /* position: relative;
  top:20px; */
    font-size:12px;
    color: #424242;
   text-align: center;
  padding: 25px;
  
}
.shop-cart:hover .tanchu{
    display: block; 
  
}
/* 设置中间的header */
.header-wrapper{
    /* background-color: red; */
    position: relative;
}
.header{
    height: 100px;
 
}
/* 设置logo的h1 */
.header .logo{
    float: left;
    margin-top: 22px;
    width: 55px;
    height: 55px;
    position: relative;
    overflow: hidden;
}
/* 设置logo的超链接 */
.header .logo a{
    width: 55px;
    height: 55px;
    left: 0px;
    background-color:#ff6700;
    background-image: url(../img/1.png);
    background-position: center;
    position: absolute;
    transition: left 0.3s;
}
.header .logo .home{
    left:-55px;
    background-image: url(../img/2.png);
}
.header .logo:hover .home{
 left:0;
}
.header .logo:hover .mi{
    left:55px
}
/* 设置中间的导航条 */
.header .nav-wrapper{
    float: left;
    margin-left: 7px;
}
/* 设置导航条 */
.header .nav{

    height: 100px;
    line-height: 100px;
    padding-left: 58px;
}
/* 设置导航条中的li */
.nav> li{
    float: left ;
}
.all-goods-wrapper{
    position: relative;

}
/* 设置左侧导航条的样式 */
.left-menu{
    width: 234px;
    height: 420px;
    background-color: rgba(0,0,0,.6);
     position: absolute;
     z-index: 999;
     left:-120px;
     line-height: 1;
     padding: 20px 0;
}
ul .left-menu li a{
    display: block;
    height: 42px;
    line-height: 42px;
    color:white;
    margin-right: 0;
    padding: 0 30px;
    font-size: 14px;
}
ul .left-menu li  a:hover {
    color: white; 
    background-color: #FF6700;
}

.left-menu a i{
    float:right;
    line-height: 42px;
}
.nav-wrapper li a{
    font-size: 16px;
    color:#000;
    margin-right: 20px;
    text-decoration: none;
    display: block;
}

.nav-wrapper li  a:hover{
  color: #FF6700;
}

/* 隐藏全部商品属性 */
 .all-goods{
    visibility: hidden;
}
/* 弹出层的设计 */
.nav .goods-info{
    height: 0px;
    width: 100%;
    overflow: hidden;
 background-color: #fff;
 /* border:1px solid rgb(224,224,224);
 box-shadow: 0 5px 5px rgba(0,0,0,.2);    */
 position:absolute;
 top:100px;
 left:0;  
 z-index: 999; 
 transition:height 0.3s;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
}
.nav .show-goods:hover~ .goods-info,
.goods-info:hover{
    height: 228px;
    border:1px solid rgb(224,224,224);
    box-shadow: 0 5px 5px rgba(0,0,0,.2);   
}
/* 设置搜索框的容器 */
.search-wrapper{
    height: 50px;
    width: 296px;
    float: right;
    margin-top:25px;
   
}
.search-wrapper .search-inp{
    width: 223px;
    float: left;
    padding: 0 10px;
    border:none;
    height:48px;
    line-height: 48px;
    border:1px solid rgb(224,224,224);
    outline: 0;
}
/* 设置input获取焦点的样式 */
.search-wrapper .search-inp:focus,
.search-wrapper .search-inp:focus + button{
    border-color: #FF6700;
}
.search-wrapper .search-btn{
    float: left;
    height: 50px;
    line-height: 50px;
    text-align: center;
    width: 48px;
    border: none;
    background-color: #fff;
    color:#616161;
    font-size: 16px;
    border:1px solid rgb(224,224,224);
    border-left: none;
    outline: 0;
}
.search-btn:hover {
    color:white;
    border:none;
 background-color: #FF6700;
}
/* 设置banner */
.banner{
    position: relative;
    height:460px;
}
.banner .img-list li {
    position: absolute;
}
.banner img{
    width: 100%;
    vertical-align: top;
}
/* 设置五个小点 */
.pointer {
    position: absolute;
    bottom:22px;
    right:35px; 
}
.pointer a{
    float:left;
    width: 6px;
    height: 6px;
border:2px rgba(255,255,255,.4) solid;
border-radius: 50%;
background-color: rgba(0,0,0,.4);
margin-left: 6px;
}
.pointer a:hover,
.pointer a.active{
    border-color: rgba(0,0,0,.4);
 background-color:rgba(255,255,255,.4);
}
/* 设置两个箭头 */
.prev-next a{
    width:41px;
    height: 69px;
    
    background-image: url(../img/prev-next.png);
    position: absolute;
    top:0px;
    bottom: 0px;
    margin:auto 0;
}
.prev-next .prev{
  left:234px;
  background-position:-84px 0;
}
.prev-next .next{
    right: 0;
    background-position: -125px 0;
}
.prev-next .prev:hover{
    background-position: 0 0;

}
.prev-next .next:hover{
    background-position: -42px 0;
}
/* 设置右侧导航 */
.back-top{
    width: 26px;
    height: 150px;
    background-color: #bfc;
    position: fixed;
    bottom: 60px;
   right: 50%;
   margin-right:-639px;
}
/* 设置广告 */
.ad{
    height: 170px;
    width: 1226px;
    margin:0 auto;
    margin-top: 14px;
}
.ad .ad-img,.ad .shortcut,.ad li{
    float: left;
}
/* 设置左侧快捷方式 */
.ad  .shortcut{
    width: 234px;
    height: 170px;
    background-color: #5f5750;
    margin-right:14px;
}
/* 设置快捷方式的样式 */
.ad .shortcut a{
    display: block;
    color:#cfccca;
    height: 84px;
    width: 76px;
    text-align: center;
    font-size: 12px;
    /* overflow: hidden; */
}
.ad .shortcut a:hover{
    color:#fff ;
}
/* 设置图标字体 */
.ad .shortcut i{
    display: block;
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 20px;
}
/* 设置左侧广告图片 */
 .ad .ad-img li{
    width: 316px;
    margin-right: 15px;
}
.ad .ad-img li:last-child{
    margin:0;
}
.ad .ad-img img{
    width: 100%;
    vertical-align: top;
}
